package com.xiaoxie.boot.dao;

import com.xiaoxie.boot.bean.UserPhoto;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author xiaoxie
 * @create 2022-02-15 21:15
 */
@Mapper
public interface UserPhotoMapper {

    //把图片路径插入数据库
    int addPhoto(UserPhoto userPhoto);

    //根据登录用户的id查出对应的头像
    UserPhoto selectPhoto(Integer id);
}
